<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ include file="/static/member/themes/default/header.jsp" %>
<html>
<head>
<title>赚积分</title>
<meta name="decorator" content="default" />
<meta name="full-screen" content="yes">
<meta name="viewport"
	content="width=device-width initial-scale=1.0  maximum-scale=1.0">
<link href="${ctxStatic}/jquery-mobile/css/jquery.mobile-1.3.1.min.css" type="text/css" rel="stylesheet" />

<script type="text/javascript">
		document.title = "${customPage.name}";
		var uid = '${uid }';
		
		if(uid=='' || uid == 35){
			location.href="http://mp.weixin.qq.com/s?__biz=MzA4OTIzMzkwMw==&mid=200130093&idx=1&sn=6f18a817db408989cbe6bd7c64d35361&uin=NzI5Nzc3NQ%3D%3D";
		}
		
</script>
</head>
<body>


				<div class="ztContent">
				${customPage.content }
				
						<!-- 签到网页 -->
						<c:if test="${customPage.type eq '2' }">
							<form id="inputForm" action="/zxims/f/wechat/signup/${uid}" method="post" onsubmit=" return checkForm();">
						</c:if>
						
						<!-- 广告 -->
						<c:if test="${customPage.type eq '3' }">
							<form id="inputForm" action="${ctx }/member/advtScore" method="post" onsubmit=" return checkForm();">
						</c:if>
							<input	type="hidden" name="topage" value="${topage }" />
							<input	type="hidden" name="wid" value="${wechatId }" />
							<input	type="hidden" name="uid" value="${uid }" />
							<input	type="hidden" name="pid" value="${customPage.id }" />
							<div align="center">

								<div class="control-group">
									<div class="controls" align="center">
									<!-- 广告 -->
										<script type="text/javascript">
											$('#countDown').attr("disabled","disabled");
											var seconds = '${customPage.adTimeout}';
											$('#instruction').text("签到倒计时");
											var  tt ;
											
											var mycounter = function countdown(){
												if(seconds == 0){
													$('#btnSubmit').val('${customPage.buttonName }');
													$('#btnSubmit').removeAttr("disabled");
													clearInterval(tt );
													$('#countDown').html('倒计时  '+seconds+'  ');
													return ;
												}
												$('#btnSubmit').attr("disabled","disabled");
												$('#countDown').html('倒计时  '+seconds+'  ');
												seconds --;
											};
											
											tt = setInterval(mycounter, 1000);
										</script>
									
									</div>
								</div>
								<br>
								<div   align="center">
									<span id="instruction"></span>
									<input id="btnSubmit" class="btn btn-danger" type="submit"  disabled="disabled"
										value="${customPage.buttonName}" />  
										<br><span id="countDown">倒计时  ${customPage.adTimeout }</span>
								</div>
								
							</div>
						</form>		
						
						
								
				</div>
	
</body>
</html>
<%@ include file="/static/member/themes/default/footer.jsp" %>

